﻿namespace MostRecentlyUsed.Interfaces
{
    /// <summary>
    /// Described methods required for external application to handle encrytion and decryption of the connection strings for persistent storage
    /// </summary>
    public interface IEncryption
    {
        /// <summary>
        /// Encrypts the specified string
        /// </summary>
        /// <param name="value">Value to encrypt</param>
        /// <returns>Encrypted connection strings</returns>
        string Encrypt(string value);

        /// <summary>
        /// Decrypts the specified string
        /// </summary>
        /// <param name="value">Value to decrypt</param>
        /// <returns>Decrypted connection strings</returns>
        string Decrypt(string value);
    }
}
